//
//  DataTool.h
//  预购清单
//
//  Created by liujianlong on 2022/10/17.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DataTool : NSObject

+ (void)find:(BOOL)isbasketball complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)find:(BOOL)isbasketball finish:(BOOL)finish stamp:(NSInteger)stamp complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)find:(BOOL)isbasketball finish:(BOOL)finish complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)findName:(NSString *)name complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)findHomeName:(NSString *)name complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)findFromName:(NSString *)name complete:(nullable void(^) (NSMutableArray <Record*>*result))block;
+ (void)findLike:(BOOL)like complete:(nullable void(^) (NSMutableArray <Record*>*result))block;

+ (void)delete:(Record *)model complete:(nullable void(^) (BOOL success))block;

+ (void)like:(Record*)model complete:(nullable void(^) (BOOL success))block;
@end

NS_ASSUME_NONNULL_END
